<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>hashcat-3.201: H:/TDDownload/Hashcat v3.20/hashcat-3.201/src/cpu_sha1.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">hashcat-3.201
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_06fe396e3e859736df6d43ad26baa72e.html">hashcat-3.201</a></li><li class="navelem"><a class="el" href="dir_9ce3dfc5d638c7f8b2c4ec0f6627771b.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">cpu_sha1.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;common.h&quot;</code><br />
<code>#include &quot;types.h&quot;</code><br />
<code>#include &quot;bitops.h&quot;</code><br />
<code>#include &quot;inc_hash_constants.h&quot;</code><br />
<code>#include &quot;inc_hash_functions.cl&quot;</code><br />
<code>#include &quot;cpu_sha1.h&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for cpu_sha1.c:</div>
<div class="dyncontent">
<div class="center"><img src="cpu__sha1_8c__incl.gif" border="0" usemap="#_h_1_2_t_d_download_2_hashcat_01v3_820_2hashcat-3_8201_2src_2cpu__sha1_8c" alt=""/></div>
<map name="_h_1_2_t_d_download_2_hashcat_01v3_820_2hashcat-3_8201_2src_2cpu__sha1_8c" id="_h_1_2_t_d_download_2_hashcat_01v3_820_2hashcat-3_8201_2src_2cpu__sha1_8c">
<area shape="rect"  title=" " alt="" coords="221,5,384,61"/>
<area shape="rect"  title=" " alt="" coords="5,109,88,136"/>
<area shape="rect"  title=" " alt="" coords="113,109,178,136"/>
<area shape="rect"  title=" " alt="" coords="202,109,270,136"/>
<area shape="rect"  title=" " alt="" coords="295,109,444,136"/>
<area shape="rect"  title=" " alt="" coords="468,109,615,136"/>
<area shape="rect"  title=" " alt="" coords="639,109,729,136"/>
</map>
</div>
</div>
<p><a href="cpu__sha1_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a32009cf6c828eac65c9d48b2a0863cbe"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="cpu__sha1_8c.html#a32009cf6c828eac65c9d48b2a0863cbe">IS_GENERIC</a></td></tr>
<tr class="separator:a32009cf6c828eac65c9d48b2a0863cbe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97d832ae23af4f215e801e37e4f94254"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="cpu__sha1_8c.html#a97d832ae23af4f215e801e37e4f94254">K</a>&#160;&#160;&#160;SHA1C00</td></tr>
<tr class="separator:a97d832ae23af4f215e801e37e4f94254"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97d832ae23af4f215e801e37e4f94254"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="cpu__sha1_8c.html#a97d832ae23af4f215e801e37e4f94254">K</a>&#160;&#160;&#160;SHA1C01</td></tr>
<tr class="separator:a97d832ae23af4f215e801e37e4f94254"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97d832ae23af4f215e801e37e4f94254"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="cpu__sha1_8c.html#a97d832ae23af4f215e801e37e4f94254">K</a>&#160;&#160;&#160;SHA1C02</td></tr>
<tr class="separator:a97d832ae23af4f215e801e37e4f94254"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97d832ae23af4f215e801e37e4f94254"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="cpu__sha1_8c.html#a97d832ae23af4f215e801e37e4f94254">K</a>&#160;&#160;&#160;SHA1C03</td></tr>
<tr class="separator:a97d832ae23af4f215e801e37e4f94254"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a8515b02eb847929727ab38711bd2fe9a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="cpu__sha1_8c.html#a8515b02eb847929727ab38711bd2fe9a">sha1_64</a> (u32 block[16], u32 digest[5])</td></tr>
<tr class="separator:a8515b02eb847929727ab38711bd2fe9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a32009cf6c828eac65c9d48b2a0863cbe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a32009cf6c828eac65c9d48b2a0863cbe">&#9670;&nbsp;</a></span>IS_GENERIC</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IS_GENERIC</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Author......: See docs/credits.txt License.....: MIT </p>

<p class="definition">Definition at line <a class="el" href="cpu__sha1_8c_source.html#l00006">6</a> of file <a class="el" href="cpu__sha1_8c_source.html">cpu_sha1.c</a>.</p>

</div>
</div>
<a id="a97d832ae23af4f215e801e37e4f94254"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a97d832ae23af4f215e801e37e4f94254">&#9670;&nbsp;</a></span>K <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define K&#160;&#160;&#160;SHA1C00</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a97d832ae23af4f215e801e37e4f94254"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a97d832ae23af4f215e801e37e4f94254">&#9670;&nbsp;</a></span>K <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define K&#160;&#160;&#160;SHA1C01</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a97d832ae23af4f215e801e37e4f94254"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a97d832ae23af4f215e801e37e4f94254">&#9670;&nbsp;</a></span>K <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define K&#160;&#160;&#160;SHA1C02</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a97d832ae23af4f215e801e37e4f94254"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a97d832ae23af4f215e801e37e4f94254">&#9670;&nbsp;</a></span>K <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define K&#160;&#160;&#160;SHA1C03</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a8515b02eb847929727ab38711bd2fe9a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8515b02eb847929727ab38711bd2fe9a">&#9670;&nbsp;</a></span>sha1_64()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sha1_64 </td>
          <td>(</td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>block</em>[16], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>digest</em>[5]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="cpu__sha1_8c_source.html#l00015">15</a> of file <a class="el" href="cpu__sha1_8c_source.html">cpu_sha1.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;{</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;  u32 a = SHA1M_A;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;  u32 b = SHA1M_B;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;  u32 c = SHA1M_C;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;  u32 d = SHA1M_D;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;  u32 e = SHA1M_E;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;  u32 w0_t = block[ 0];</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;  u32 w1_t = block[ 1];</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;  u32 w2_t = block[ 2];</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;  u32 w3_t = block[ 3];</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;  u32 w4_t = block[ 4];</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;  u32 w5_t = block[ 5];</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;  u32 w6_t = block[ 6];</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;  u32 w7_t = block[ 7];</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;  u32 w8_t = block[ 8];</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;  u32 w9_t = block[ 9];</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;  u32 wa_t = block[10];</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;  u32 wb_t = block[11];</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;  u32 wc_t = block[12];</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;  u32 wd_t = block[13];</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;  u32 we_t = block[14];</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;  u32 wf_t = block[15];</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">  #undef K</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">  #define K SHA1C00</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;  SHA1_STEP (SHA1_F0o, a, b, c, d, e, w0_t);</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;  SHA1_STEP (SHA1_F0o, e, a, b, c, d, w1_t);</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;  SHA1_STEP (SHA1_F0o, d, e, a, b, c, w2_t);</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;  SHA1_STEP (SHA1_F0o, c, d, e, a, b, w3_t);</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;  SHA1_STEP (SHA1_F0o, b, c, d, e, a, w4_t);</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;  SHA1_STEP (SHA1_F0o, a, b, c, d, e, w5_t);</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;  SHA1_STEP (SHA1_F0o, e, a, b, c, d, w6_t);</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;  SHA1_STEP (SHA1_F0o, d, e, a, b, c, w7_t);</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;  SHA1_STEP (SHA1_F0o, c, d, e, a, b, w8_t);</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;  SHA1_STEP (SHA1_F0o, b, c, d, e, a, w9_t);</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;  SHA1_STEP (SHA1_F0o, a, b, c, d, e, wa_t);</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;  SHA1_STEP (SHA1_F0o, e, a, b, c, d, wb_t);</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;  SHA1_STEP (SHA1_F0o, d, e, a, b, c, wc_t);</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;  SHA1_STEP (SHA1_F0o, c, d, e, a, b, wd_t);</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;  SHA1_STEP (SHA1_F0o, b, c, d, e, a, we_t);</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;  SHA1_STEP (SHA1_F0o, a, b, c, d, e, wf_t);</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;  w0_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((wd_t ^ w8_t ^ w2_t ^ w0_t), 1u); SHA1_STEP (SHA1_F0o, e, a, b, c, d, w0_t);</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;  w1_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((we_t ^ w9_t ^ w3_t ^ w1_t), 1u); SHA1_STEP (SHA1_F0o, d, e, a, b, c, w1_t);</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;  w2_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((wf_t ^ wa_t ^ w4_t ^ w2_t), 1u); SHA1_STEP (SHA1_F0o, c, d, e, a, b, w2_t);</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;  w3_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w0_t ^ wb_t ^ w5_t ^ w3_t), 1u); SHA1_STEP (SHA1_F0o, b, c, d, e, a, w3_t);</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="preprocessor">  #undef K</span></div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="preprocessor">  #define K SHA1C01</span></div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;  w4_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w1_t ^ wc_t ^ w6_t ^ w4_t), 1u); SHA1_STEP (SHA1_F1, a, b, c, d, e, w4_t);</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;  w5_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w2_t ^ wd_t ^ w7_t ^ w5_t), 1u); SHA1_STEP (SHA1_F1, e, a, b, c, d, w5_t);</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;  w6_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w3_t ^ we_t ^ w8_t ^ w6_t), 1u); SHA1_STEP (SHA1_F1, d, e, a, b, c, w6_t);</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;  w7_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w4_t ^ wf_t ^ w9_t ^ w7_t), 1u); SHA1_STEP (SHA1_F1, c, d, e, a, b, w7_t);</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;  w8_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w5_t ^ w0_t ^ wa_t ^ w8_t), 1u); SHA1_STEP (SHA1_F1, b, c, d, e, a, w8_t);</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;  w9_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w6_t ^ w1_t ^ wb_t ^ w9_t), 1u); SHA1_STEP (SHA1_F1, a, b, c, d, e, w9_t);</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;  wa_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w7_t ^ w2_t ^ wc_t ^ wa_t), 1u); SHA1_STEP (SHA1_F1, e, a, b, c, d, wa_t);</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;  wb_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w8_t ^ w3_t ^ wd_t ^ wb_t), 1u); SHA1_STEP (SHA1_F1, d, e, a, b, c, wb_t);</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;  wc_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w9_t ^ w4_t ^ we_t ^ wc_t), 1u); SHA1_STEP (SHA1_F1, c, d, e, a, b, wc_t);</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;  wd_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((wa_t ^ w5_t ^ wf_t ^ wd_t), 1u); SHA1_STEP (SHA1_F1, b, c, d, e, a, wd_t);</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;  we_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((wb_t ^ w6_t ^ w0_t ^ we_t), 1u); SHA1_STEP (SHA1_F1, a, b, c, d, e, we_t);</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;  wf_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((wc_t ^ w7_t ^ w1_t ^ wf_t), 1u); SHA1_STEP (SHA1_F1, e, a, b, c, d, wf_t);</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;  w0_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((wd_t ^ w8_t ^ w2_t ^ w0_t), 1u); SHA1_STEP (SHA1_F1, d, e, a, b, c, w0_t);</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;  w1_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((we_t ^ w9_t ^ w3_t ^ w1_t), 1u); SHA1_STEP (SHA1_F1, c, d, e, a, b, w1_t);</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;  w2_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((wf_t ^ wa_t ^ w4_t ^ w2_t), 1u); SHA1_STEP (SHA1_F1, b, c, d, e, a, w2_t);</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;  w3_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w0_t ^ wb_t ^ w5_t ^ w3_t), 1u); SHA1_STEP (SHA1_F1, a, b, c, d, e, w3_t);</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;  w4_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w1_t ^ wc_t ^ w6_t ^ w4_t), 1u); SHA1_STEP (SHA1_F1, e, a, b, c, d, w4_t);</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;  w5_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w2_t ^ wd_t ^ w7_t ^ w5_t), 1u); SHA1_STEP (SHA1_F1, d, e, a, b, c, w5_t);</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;  w6_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w3_t ^ we_t ^ w8_t ^ w6_t), 1u); SHA1_STEP (SHA1_F1, c, d, e, a, b, w6_t);</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;  w7_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w4_t ^ wf_t ^ w9_t ^ w7_t), 1u); SHA1_STEP (SHA1_F1, b, c, d, e, a, w7_t);</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="preprocessor">  #undef K</span></div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="preprocessor">  #define K SHA1C02</span></div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;  w8_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w5_t ^ w0_t ^ wa_t ^ w8_t), 1u); SHA1_STEP (SHA1_F2o, a, b, c, d, e, w8_t);</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;  w9_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w6_t ^ w1_t ^ wb_t ^ w9_t), 1u); SHA1_STEP (SHA1_F2o, e, a, b, c, d, w9_t);</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;  wa_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w7_t ^ w2_t ^ wc_t ^ wa_t), 1u); SHA1_STEP (SHA1_F2o, d, e, a, b, c, wa_t);</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;  wb_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w8_t ^ w3_t ^ wd_t ^ wb_t), 1u); SHA1_STEP (SHA1_F2o, c, d, e, a, b, wb_t);</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;  wc_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w9_t ^ w4_t ^ we_t ^ wc_t), 1u); SHA1_STEP (SHA1_F2o, b, c, d, e, a, wc_t);</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;  wd_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((wa_t ^ w5_t ^ wf_t ^ wd_t), 1u); SHA1_STEP (SHA1_F2o, a, b, c, d, e, wd_t);</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;  we_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((wb_t ^ w6_t ^ w0_t ^ we_t), 1u); SHA1_STEP (SHA1_F2o, e, a, b, c, d, we_t);</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;  wf_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((wc_t ^ w7_t ^ w1_t ^ wf_t), 1u); SHA1_STEP (SHA1_F2o, d, e, a, b, c, wf_t);</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;  w0_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((wd_t ^ w8_t ^ w2_t ^ w0_t), 1u); SHA1_STEP (SHA1_F2o, c, d, e, a, b, w0_t);</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;  w1_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((we_t ^ w9_t ^ w3_t ^ w1_t), 1u); SHA1_STEP (SHA1_F2o, b, c, d, e, a, w1_t);</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;  w2_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((wf_t ^ wa_t ^ w4_t ^ w2_t), 1u); SHA1_STEP (SHA1_F2o, a, b, c, d, e, w2_t);</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;  w3_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w0_t ^ wb_t ^ w5_t ^ w3_t), 1u); SHA1_STEP (SHA1_F2o, e, a, b, c, d, w3_t);</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;  w4_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w1_t ^ wc_t ^ w6_t ^ w4_t), 1u); SHA1_STEP (SHA1_F2o, d, e, a, b, c, w4_t);</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;  w5_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w2_t ^ wd_t ^ w7_t ^ w5_t), 1u); SHA1_STEP (SHA1_F2o, c, d, e, a, b, w5_t);</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;  w6_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w3_t ^ we_t ^ w8_t ^ w6_t), 1u); SHA1_STEP (SHA1_F2o, b, c, d, e, a, w6_t);</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;  w7_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w4_t ^ wf_t ^ w9_t ^ w7_t), 1u); SHA1_STEP (SHA1_F2o, a, b, c, d, e, w7_t);</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;  w8_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w5_t ^ w0_t ^ wa_t ^ w8_t), 1u); SHA1_STEP (SHA1_F2o, e, a, b, c, d, w8_t);</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;  w9_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w6_t ^ w1_t ^ wb_t ^ w9_t), 1u); SHA1_STEP (SHA1_F2o, d, e, a, b, c, w9_t);</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;  wa_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w7_t ^ w2_t ^ wc_t ^ wa_t), 1u); SHA1_STEP (SHA1_F2o, c, d, e, a, b, wa_t);</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;  wb_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w8_t ^ w3_t ^ wd_t ^ wb_t), 1u); SHA1_STEP (SHA1_F2o, b, c, d, e, a, wb_t);</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="preprocessor">  #undef K</span></div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="preprocessor">  #define K SHA1C03</span></div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;  wc_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w9_t ^ w4_t ^ we_t ^ wc_t), 1u); SHA1_STEP (SHA1_F1, a, b, c, d, e, wc_t);</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;  wd_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((wa_t ^ w5_t ^ wf_t ^ wd_t), 1u); SHA1_STEP (SHA1_F1, e, a, b, c, d, wd_t);</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;  we_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((wb_t ^ w6_t ^ w0_t ^ we_t), 1u); SHA1_STEP (SHA1_F1, d, e, a, b, c, we_t);</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;  wf_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((wc_t ^ w7_t ^ w1_t ^ wf_t), 1u); SHA1_STEP (SHA1_F1, c, d, e, a, b, wf_t);</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;  w0_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((wd_t ^ w8_t ^ w2_t ^ w0_t), 1u); SHA1_STEP (SHA1_F1, b, c, d, e, a, w0_t);</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;  w1_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((we_t ^ w9_t ^ w3_t ^ w1_t), 1u); SHA1_STEP (SHA1_F1, a, b, c, d, e, w1_t);</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;  w2_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((wf_t ^ wa_t ^ w4_t ^ w2_t), 1u); SHA1_STEP (SHA1_F1, e, a, b, c, d, w2_t);</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;  w3_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w0_t ^ wb_t ^ w5_t ^ w3_t), 1u); SHA1_STEP (SHA1_F1, d, e, a, b, c, w3_t);</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;  w4_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w1_t ^ wc_t ^ w6_t ^ w4_t), 1u); SHA1_STEP (SHA1_F1, c, d, e, a, b, w4_t);</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;  w5_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w2_t ^ wd_t ^ w7_t ^ w5_t), 1u); SHA1_STEP (SHA1_F1, b, c, d, e, a, w5_t);</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;  w6_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w3_t ^ we_t ^ w8_t ^ w6_t), 1u); SHA1_STEP (SHA1_F1, a, b, c, d, e, w6_t);</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;  w7_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w4_t ^ wf_t ^ w9_t ^ w7_t), 1u); SHA1_STEP (SHA1_F1, e, a, b, c, d, w7_t);</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;  w8_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w5_t ^ w0_t ^ wa_t ^ w8_t), 1u); SHA1_STEP (SHA1_F1, d, e, a, b, c, w8_t);</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;  w9_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w6_t ^ w1_t ^ wb_t ^ w9_t), 1u); SHA1_STEP (SHA1_F1, c, d, e, a, b, w9_t);</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;  wa_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w7_t ^ w2_t ^ wc_t ^ wa_t), 1u); SHA1_STEP (SHA1_F1, b, c, d, e, a, wa_t);</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;  wb_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w8_t ^ w3_t ^ wd_t ^ wb_t), 1u); SHA1_STEP (SHA1_F1, a, b, c, d, e, wb_t);</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;  wc_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((w9_t ^ w4_t ^ we_t ^ wc_t), 1u); SHA1_STEP (SHA1_F1, e, a, b, c, d, wc_t);</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;  wd_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((wa_t ^ w5_t ^ wf_t ^ wd_t), 1u); SHA1_STEP (SHA1_F1, d, e, a, b, c, wd_t);</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;  we_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((wb_t ^ w6_t ^ w0_t ^ we_t), 1u); SHA1_STEP (SHA1_F1, c, d, e, a, b, we_t);</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;  wf_t = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> ((wc_t ^ w7_t ^ w1_t ^ wf_t), 1u); SHA1_STEP (SHA1_F1, b, c, d, e, a, wf_t);</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;  digest[0] += a;</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;  digest[1] += b;</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;  digest[2] += c;</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;  digest[3] += d;</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;  digest[4] += e;</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;}</div><div class="ttc" id="bitops_8c_html_a6cca97e9410febb66fd3238218978c0f"><div class="ttname"><a href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a></div><div class="ttdeci">u32 rotl32(const u32 a, const u32 n)</div><div class="ttdef"><b>Definition:</b> <a href="bitops_8c_source.html#l00010">bitops.c:10</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="bitops_8c_source.html#l00010">rotl32()</a>.</p>

<p class="reference">Referenced by <a class="el" href="interface_8c_source.html#l04129">pstoken_parse_hash()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="cpu__sha1_8c_a8515b02eb847929727ab38711bd2fe9a_cgraph.gif" border="0" usemap="#cpu__sha1_8c_a8515b02eb847929727ab38711bd2fe9a_cgraph" alt=""/></div>
<map name="cpu__sha1_8c_a8515b02eb847929727ab38711bd2fe9a_cgraph" id="cpu__sha1_8c_a8515b02eb847929727ab38711bd2fe9a_cgraph">
<area shape="rect"  title=" " alt="" coords="5,5,76,32"/>
<area shape="rect"  href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f" title=" " alt="" coords="124,5,179,32"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="cpu__sha1_8c_a8515b02eb847929727ab38711bd2fe9a_icgraph.gif" border="0" usemap="#cpu__sha1_8c_a8515b02eb847929727ab38711bd2fe9a_icgraph" alt=""/></div>
<map name="cpu__sha1_8c_a8515b02eb847929727ab38711bd2fe9a_icgraph" id="cpu__sha1_8c_a8515b02eb847929727ab38711bd2fe9a_icgraph">
<area shape="rect"  title=" " alt="" coords="803,5,873,32"/>
<area shape="rect"  href="interface_8c.html#a1f5e77c01a4f4b050f6fa2fb88c5f646" title=" " alt="" coords="612,5,755,32"/>
<area shape="rect"  href="interface_8c.html#a748d227a9485eb76daa5f1e70ea9badc" title=" " alt="" coords="456,5,564,32"/>
<area shape="rect"  href="hashcat_8c.html#ac33e9695b713153c0fc7cce11696704b" title=" " alt="" coords="325,5,408,32"/>
<area shape="rect"  href="hashcat_8c.html#ac49fece3f82732fda9eb29766cc01168" title=" " alt="" coords="104,5,277,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
